-wayland: Safeguard against NULL gtk_surface1
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 4 Oct 2017 21:25:31 +0000 (18:25 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 4 Oct 2017 21:30:34 +0000 (18:30 -0300)
commit04456404be970595daefe9377d0c59571ce44d7f
treec67563342c718925cb04d95c939d3345421e44f6
parentf63519dc014ba598fddc38c9f1acb1975acc36a2
-wayland: Safeguard against NULL gtk_surface1

There is no guarantee that the gtk_surface won't be NULL,
and Wayland API does not safeguard against NULL, so we have
to do that ourselves here.

We were also mistakenly cheking for the surface version off
by one, fix that too by checking if the surface version is
equal or greater.
gdk/wayland/gdkwindow-wayland.c